import { Routes, RouterModule }  from '@angular/router';
import { TripComponent } from './trip.component';
import { StopComponent } from './stop/stop.component';
import { TripDetailComponent } from './trip-detail.component';

const routes: Routes = [
  {
    path: '',
    component: TripComponent
  },
  {
      path:'detail/:trip_id',
      component: TripDetailComponent
  },
  {
      path:'stop',
      component: StopComponent
  }  
];

export const routing = RouterModule.forChild(routes);